import Vue from 'vue'
import store from 'store/index.js'
import App from './App'
import uView from "uview-ui";
Vue.use(uView);

import NavCustom from 'components/nav-custom.vue';
Vue.component('nav-custom',NavCustom)
import HomeTitle from 'components/home-title.vue';
Vue.component('home-title',HomeTitle)
import GoodsItem from 'components/goods-item.vue';
Vue.component('goods-item',GoodsItem)
import { $post,$http,$get } from 'utils/request.js'

// Vue.prototype.$http=$http
// Vue.prototype.$get=$get
// Vue.prototype.$post=$post

import * as request  from 'utils/request.js'
for(let key in request){
	Vue.prototype[key] = request[key]
}



Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})
app.$mount()
